/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-12-28     金鹏       the first version
 */
#ifndef JPCMN_DEFINE_DEFINE_H_
#define JPCMN_DEFINE_DEFINE_H_

#include <rtdef.h>

/* 线程相关参数*/
#define ENTRY_STACK_SIZE         1024+512
#define ENTRY_PRI                      20
#define ENTRY_TICK                      5

/* 消息队列相关参数*/
#define MQ_STACK_SIZE                  60
#define MQ_COUNT                       20
#define MQ_FLAG          RT_IPC_FLAG_FIFO
#define MQ_WAIT_FLAG   RT_WAITING_FOREVER

/* 已存在*/
#define RT_NG                           1

short len;                                                      /* 语音唯一长度*/

rt_timer_t voice_timer;                                         /* 语音定时器*/

/* 0:RT_EOK; -1:RT_ERROR; 1:RT_NG*/
typedef char ENTRY;

typedef struct node{
    double lon;
    double lat;
}Postion;


#endif /* JPCMN_DEFINE_DEFINE_H_ */
